using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MMM.Core.Domain;
using ServiceStack.ServiceHost;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;


namespace MMM.Services.Type
{
    [Serializable]
    [Route("/api/basicinfo", "POST,PUT")]
    [Route("/api/basicinfoQ", "GET")]
    public class BasicInfo : EntityBase<BasicInfo>
    {
        /// <summary>
        /// 姓名
        /// </summary>
        [StringLength(50)]
        [Required]
        public String Name { get; set; }
        /// <summary>
        /// 性别
        /// </summary>
        [Required]
        public bool? Gender { get; set; }
        /// <summary>
        /// 生日
        /// </summary>
        public DateTime? Birthday { get; set; }
        /// <summary>
        /// 年龄
        /// </summary>
        public int? Age { get; set; }
        /// <summary>
        /// 名族
        /// </summary>
        [StringLength(50)]
        public String Nationality { get; set; }
        /// <summary>
        /// 婚姻
        /// </summary>
        [StringLength(50)]
        public String Marriage { get; set; }
        /// <summary>
        /// 国籍
        /// </summary>
        [StringLength(50)]
        public String CitizenShip { get; set; }
        /// <summary>
        /// 血型
        /// </summary>
        [StringLength(50)]
        public String BloodType { get; set; }
        /// <summary>
        /// 出生地
        /// </summary>
        [StringLength(100)]
        public String Birthplace { get; set; }
        /// <summary>
        /// 政治面貌
        /// </summary>
        [StringLength(50)]
        public String PoliticsStatus { get; set; }
        /// <summary>
        /// 证件
        /// </summary>
        [StringLength(50)]
        public String Credential { get; set; }
        /// <summary>
        /// 档案所在地
        /// </summary>
        [StringLength(100)]
        public String FilesPlace { get; set; }
        /// <summary>
        /// 户口所在地
        /// </summary>
        [StringLength(100)]
        public String DomicilePlace { get; set; }
        /// <summary>
        /// 照片
        /// </summary>
        [StringLength(100)]
        public String Photo { get; set; }
        /// <summary>
        /// 邮箱
        /// </summary>
        [StringLength(50)]
        [Required]
        public String Email { get; set; }
        /// <summary>
        /// 私人邮箱
        /// </summary>
        [StringLength(50)]
        public String PrivateEmail { get; set; }
        /// <summary>
        /// 移动电话
        /// </summary>
        [StringLength(50)]
        public String MobilePhone { get; set; }
        /// <summary>
        /// 个人主页
        /// </summary>
        [StringLength(100)]
        public String PersonalUrl { get; set; }
        /// <summary>
        /// 兴趣爱好
        /// </summary>
        [StringLength(100)]
        public String Interests { get; set; }
        /// <summary>
        /// 传真
        /// </summary>
        [StringLength(50)]
        public String Fax { get; set; }
        /// <summary>
        /// 住址
        /// </summary>
        [StringLength(100)]
        public String Address { get; set; }
        /// <summary>
        /// 客户Id
        /// </summary>   
        [Required]
        public Guid CustomerId { get; set; }
        /// <summary>
        /// 客户名称
        /// </summary>
        [StringLength(50)]
        [Required]
        public String CustomerName { get; set; }
    }
}
